package com.atguigu.gulimall.order.config;

import feign.Request;
import org.springframework.context.annotation.Bean;

/**
 * Data time:2022/4/15 15:34
 * StudentID:2019112118
 * Author:hgw
 * Description: 设置feign的超时时长
 */
public class BigDataClientFallbackConfig {
    @Bean
    Request.Options options() {
        // 第一个参数是连接超时，第二个参数是读取超时，默认ms
        return new Request.Options(500, 500);
    }
}
